Skip to content

Run PR CI on pull_request instead of pull_request_target - #8

Merged
Ale Paredes (ale7714) merged 1 commit into
mainfrom
fix/pull-request-trigger
Jul 27, 2026
Merged

Run PR CI on pull_request instead of pull_request_target#8
Ale Paredes (ale7714) merged 1 commit into
mainfrom
fix/pull-request-trigger

Conversation

@ale7714

Copy link
Copy Markdown
Contributor

pullrequest.yml ran fork PRs under pull_request_target, which executes untrusted PR code with repo secrets available and a privileged GITHUB_TOKEN persisted by checkout. The PR jobs here (test, license finder) reference no secrets, so plain pull_request does the same work while GitHub withholds secrets and issues a read-only token for fork runs. The event_name checks in the reusable workflows already handle this: on pull_request the default checkout picks the PR merge ref.

Part of an org-wide sweep of pull_request_target use (same change as viamrobotics/viam-python-sdk#1246).

🤖 Generated with Claude Code

pullrequest.yml ran fork PRs under pull_request_target, which executes
untrusted PR code with repo secrets available and a privileged GITHUB_TOKEN
persisted by checkout. The PR jobs reference no secrets, so plain
pull_request does the same work while GitHub withholds secrets and issues a
read-only token for fork runs.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ale7714
Ale Paredes (ale7714) merged commit ff091e7 into main Jul 27, 2026
2 of 4 checks passed
@ale7714
Ale Paredes (ale7714) deleted the fix/pull-request-trigger branch July 27, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant